<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
    $(function() {
        $( "#startdate" ).datepicker({ minDate: 0});
        $( "#enddate" ).datepicker( {stepMonths:  $( "#startdate" ).datepicker +3}); //, maxDate: "+1Y +10D" });
    });
    </script>
<fmt:setBundle basename="message" />
<c:set var="t" value="true"/>
<title><fmt:message key="showpublicholiday.title"/></title>
</head>
<body>
<form action="/FBS/ProcessPublicHoliday" method=post>
<center>
<table cellpadding=2 border=0>
<tr>
<th>Description
</th>
<th>Details
</th>
</tr>
<tr ></tr>
<tr>
<td><fmt:message key="label.publicholiday.startdate" />
</td>
<td>
<c:if test="${param['insert']==t}">
<input type="text" id="startdate"  name = "startdate" value="${param['startdate'] }" size=15 maxlength=20>
<input type="hidden" name="ins" value="true" />
</c:if>
<c:if test="${param['update']==t}">
<input type="text" name = "startdate" value="${param['startdate'] } " size=15 maxlength=20 readonly="readonly">
<input type="hidden" name="ins" value="false" />
</c:if>
</td>
</tr>
<tr>
<td><fmt:message key="label.publicholiday.enddate" /></td>
<td>
<c:if test="${param['insert']==t}">
<input type="text" id = "enddate" name="enddate" value="${param['enddate'] } " size=15 maxlength=20>
</c:if>
<c:if test="${param['update']==t}">
<input type="text"  name="enddate" value="${param['enddate'] } " size=15 maxlength=20 readonly="readonly">
</c:if>
</td>
</tr>
<tr>
<td><fmt:message key="label.publicholiday.description" /></td>
<td>
<input type="text" name="description" value="${param['description'] } " size=15 maxlength=20 >
</td>
</tr>
</table>
</center>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</body>
</html>